package com.dk.service.impl;

import com.dk.pojo.Car;
import com.dk.service.CarServiceI;
import org.springframework.stereotype.Service;

@Service //交给spring容器 Component也可以代替
@com.alibaba.dubbo.config.annotation.Service //dubbo生产者暴露接口 alibaba包
public class CarServiceImpl implements CarServiceI {
    @Override
    public Car FindAll() {
        Car c = new Car();
        c.setCarId(1);
        c.setCname("张三");
        return c;
    }
}
